package com.situ.day23.factory;

public class Opeartion {

    private Integer num1;
    private Integer num2;

    public Opeartion(Integer num1, Integer num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    public int add() {
        return num1  + num2;
    }

    public int sub() {
        return num1 - num2;
    }
}
